using System;
using XmlStudio.DataLayer;

namespace XmlStudio.Models.Events {
    /// <summary>
    /// Event arguments for NodeUpdated event.
    /// </summary>
    /// <typeparam name="TNode"></typeparam>
    public class NodeUpdatedEventArgs<TNode> : EventArgs
        where TNode : BigXmlNode {

        /// <summary>
        /// Gets the updated node.
        /// </summary>
        public TNode UpdatedNode { get; private set; }

        /// <summary>
        /// Initializes a new instance of the <see cref="NodeUpdatedEventArgs{TNode}"/> class.
        /// </summary>
        /// <param name="node">Updated node.</param>
        public NodeUpdatedEventArgs(TNode node) {
            this.UpdatedNode = node;
        }
    }
}